//package cn.wanda.bi.sunshine.platform.server.controller.authorize;
//
//import cn.wanda.bi.sunshine.platform.server.aspect.Logging;
//import cn.wanda.bi.sunshine.platform.server.controller.request.AuthorizeMemberRequest;
//import cn.wanda.bi.sunshine.platform.server.controller.response.MemberLoginResponse;
//import cn.wanda.bi.sunshine.platform.server.controller.response.common.SimpleResponse;
//import cn.wanda.bi.sunshine.platform.server.service.authorize.AuthService;
//import io.swagger.annotations.Api;
//import io.swagger.annotations.ApiOperation;
//import io.swagger.annotations.ApiParam;
//import org.slf4j.Logger;
//import org.slf4j.LoggerFactory;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.http.MediaType;
//import org.springframework.web.bind.annotation.*;
//
///**
// * Created by wangfupeng1
// */
//@Api(description = "会员绑定认证")
////@RestController
////@RequestMapping(value = "/v1/member", produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
//public class AuthorizeMemberController implements Logging {
//
//    public static final Logger logger = LoggerFactory.getLogger(AuthorizeMemberController.class);
//
//    @Autowired
//    private AuthService authService;
//
//    @ApiOperation("获取第三方验签")
////    @RequestMapping(value = "/signature", method = RequestMethod.GET)
//    SimpleResponse signature(
//            @ApiParam(value = "分享地址") @RequestParam(value = "url") String url,
//            @ApiParam(value = "第三方appid") @RequestParam(value = "appid") String appid,
//            @ApiParam(value = "第三方类型，WECHAT,QQ,TAOBAO") @RequestParam(value = "type",defaultValue="WECHAT") String type
//            ) {
//        return authService.memberSignature(appid, url,type );
//    }
//
//    @ApiOperation("第三方C端会员登陆")
////    @RequestMapping(value = "/login", method = RequestMethod.POST)
//    SimpleResponse<MemberLoginResponse> login(
//    		@ApiParam(value = "第三方用户代码") @RequestParam(value = "code") String code,
//            @ApiParam(value = "第三方appid") @RequestParam(value = "appid") String appid,
//            @ApiParam(value = "第三方类型，WECHAT,QQ,TAOBAO") @RequestParam(value = "type",defaultValue="WECHAT") String type
//            ) {
//        return authService.memberLogin(appid, code, type);
//    }
//
//    @ApiOperation("第三方C端绑定会员手机号")
////    @RequestMapping(value = "/bind", method = RequestMethod.POST)
//    SimpleResponse<MemberLoginResponse> bind( @RequestBody AuthorizeMemberRequest authorizeMemberRequest ) {
//        return authService.memberBind(authorizeMemberRequest.getAppid(), authorizeMemberRequest.getCode(), authorizeMemberRequest.getMobile()
//                , authorizeMemberRequest.getVerifyCode(), authorizeMemberRequest.getType());
//    }
//
//    @ApiOperation("第三方获取第三方用户信息")
////    @RequestMapping(value = "/userInfo", method = RequestMethod.GET)
//    SimpleResponse userInfo(
//    		@ApiParam(value = "第三方用户代码") @RequestParam(value = "code") String code,
//            @ApiParam(value = "第三方appid") @RequestParam(value = "appid") String appid,
//            @ApiParam(value = "第三方类型，WECHAT,QQ,TAOBAO") @RequestParam(value = "type",defaultValue="WECHAT") String type
//            ) {
//        return authService.memberUserInfo(appid, code, type);
//    }
//    
//}
